import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ScheduleModule } from '@nestjs/schedule';
import { Notification } from '../../entities/notification.entity';
import { NotificationController } from './notification.controller';
import { NotificationService } from './notification.service';
import { TaskReminderService } from './task-reminder.service';
import { TaskModule } from '../task/task.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Notification]),
    ScheduleModule.forRoot(),
    TaskModule,
  ],
  controllers: [NotificationController],
  providers: [NotificationService, TaskReminderService],
  exports: [NotificationService],
})
export class NotificationModule {} 